package edu.api.jdbc_api;

/**
 * 属性类型：建议使用包装类
 * 收货地址和用户一对一关系
 */
public class Bs_address {

    private Integer id;
    private Integer user_id;
    private String area;
    private String detail_address;
    private String email_code;
    private String reciver;
    private String tel;
    private String is_default;

    private Bs_user bs_user;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getDetail_address() {
        return detail_address;
    }

    public void setDetail_address(String detail_address) {
        this.detail_address = detail_address;
    }

    public String getEmail_code() {
        return email_code;
    }

    public void setEmail_code(String email_code) {
        this.email_code = email_code;
    }

    public String getReciver() {
        return reciver;
    }

    public void setReciver(String reciver) {
        this.reciver = reciver;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getIs_default() {
        return is_default;
    }

    public void setIs_default(String is_default) {
        this.is_default = is_default;
    }

    public Bs_user getBs_user() {
        return bs_user;
    }

    public void setBs_user(Bs_user bs_user) {
        this.bs_user = bs_user;
    }

    public Bs_address() {
    }

    public Bs_address(Integer id, Integer user_id, String area, String detail_address, String email_code, String reciver, String tel, String is_default, Bs_user bs_user) {
        this.id = id;
        this.user_id = user_id;
        this.area = area;
        this.detail_address = detail_address;
        this.email_code = email_code;
        this.reciver = reciver;
        this.tel = tel;
        this.is_default = is_default;
        this.bs_user = bs_user;
    }

    @Override
    public String toString() {
        return "Bs_address{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", area='" + area + '\'' +
                ", detail_address='" + detail_address + '\'' +
                ", email_code='" + email_code + '\'' +
                ", reciver='" + reciver + '\'' +
                ", tel='" + tel + '\'' +
                ", is_default=" + is_default +
                ", bs_user=" + bs_user +
                '}';
    }
}
